package com.ysh.exception;


import com.ysh.common.Result;

public class BusinessException extends RuntimeException {

    private Result result;

    public BusinessException(Result result) {
        this.result = result;
    }

    public BusinessException(String message, Result result) {
        super(message);
        this.result = result;
    }

    public BusinessException(String message, Throwable cause, Result result) {
        super(message, cause);
        this.result = result;
    }

    public BusinessException(Throwable cause, Result result) {
        super(cause);
        this.result = result;
    }

    public BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Result result) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.result = result;
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }
}
